import { instance } from "../utils/request";
const getLoginLogsPagination = async (params) => {
	return await instance.get("/LoginLogs/Pagination", params);
};

const addLoginLogs = async (data) => {
	return await instance.post("/LoginLogs/Add", data);
};

const updateLoginLogs = async (data) => {
	return await instance.post("/LoginLogs/Update", data);
};

const getLoginLogsDetail = async (id) => {
	return await instance.get("/LoginLogs/Detail", { id : id });
};

const deleteLoginLogs = async (id) => {
	return await instance.post("/LoginLogs/Delete", { id : id });
};

const loginLogsApi = {
	getLoginLogsPagination,
	addLoginLogs,
	updateLoginLogs,
	getLoginLogsDetail,
	deleteLoginLogs,
};

export default loginLogsApi
